package com.blast.comicsisland.model.topic;

/**
 * Created by dell on 2015/6/24.
 */

import com.blast.comicsisland.model.topic.Info;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * 专题页获取Json的实体类
 * http://mhjk.1391.com/comic/recommendspecial_sb?e=1435058019&retype=2&channelid=baidu
 */
public class Topic {
    private String codeMsg;
    private String code;
    //使用RankBody的Info 结构完全相同
    private Info info;

    public void parseJSON(JSONObject jsonObject){
        info = new Info();
        try {
            JSONObject infoObject = jsonObject.getJSONObject("info");
            info.parseJSON(infoObject);
        } catch (JSONException e) {
            e.printStackTrace();
        }
    }

    public Info getInfo() {
        return info;
    }

    public void setInfo(Info info) {
        this.info = info;
    }
}
